package com.store.bookstore_backend.service;

import com.store.bookstore_backend.dto.ShopcarGetDTO;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;

public interface ShopCarService {
    //获取当前用户的购物车
    public List<ShopcarGetDTO> getShopCars(HttpServletRequest request);

    //删除购物车的书籍
    public void deleteShopCar(ArrayList<Integer> idList);

    //更新购物车内容
    public void updateShopCar(Integer id, HttpServletRequest request,Integer num);

    //更新书籍数量
    public void updateShopCarNum(Integer id, Integer num, HttpServletRequest request);
}
